package com.htjx.mall.commons.models;

import java.math.BigDecimal;
import java.util.Date;

import com.htjx.mall.commons.models.enums.ExpressCom;
import com.htjx.mall.commons.models.enums.OrderStatus;


/**
 * 
 * @author Administrator
 *
 */
public class Order {
	/** id **/
	/** yyyyMMdd+4位序号+SSS(3位毫秒值)+C(1位校验码) **/
	private long id;
	/** 订单组id **/
	private long order_group_id;
	/** 下订单的用户 **/
	private long user_id;
	/** 用户名 **/
	private String user_name;
	/** 订单状态 **/
	private OrderStatus order_status;
	/** 商品规格 id **/
	private long specification_id;
	/** 商品名称 **/
	private String product_name;
	/** 品类名称 **/
	private String catalog_name;
	/** 规格名称 **/
	private String specification_name;
	/** 是否为虚拟商品 **/
	private boolean virtual;
	/** 商品图片 **/
	private String image;
	/** 商品价格 **/
	private BigDecimal price = BigDecimal.ZERO;
	/** 数量 **/
	private int quantity;
	/** 收件人信息 名称 地址 电话 **/
	private String rec_name;
	private String address;
	private String phone;
	private String description;
	private Date create_time;
	private Date update_time;
	
	/**物流信息**/
	private ExpressCom express_com;
	private String express_no;
	/**版本字段**/
	private int version;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getOrder_group_id() {
		return order_group_id;
	}
	public void setOrder_group_id(long order_group_id) {
		this.order_group_id = order_group_id;
	}
	public long getUser_id() {
		return user_id;
	}
	public void setUser_id(long user_id) {
		this.user_id = user_id;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public OrderStatus getOrder_status() {
		return order_status;
	}
	public void setOrder_status(OrderStatus order_status) {
		this.order_status = order_status;
	}
	public long getSpecification_id() {
		return specification_id;
	}
	public void setSpecification_id(long specification_id) {
		this.specification_id = specification_id;
	}
	public String getProduct_name() {
		return product_name;
	}
	public void setProduct_name(String product_name) {
		this.product_name = product_name;
	}
	public String getCatalog_name() {
		return catalog_name;
	}
	public void setCatalog_name(String catalog_name) {
		this.catalog_name = catalog_name;
	}
	public String getSpecification_name() {
		return specification_name;
	}
	public void setSpecification_name(String specification_name) {
		this.specification_name = specification_name;
	}
	public boolean isVirtual() {
		return virtual;
	}
	public void setVirtual(boolean virtual) {
		this.virtual = virtual;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public String getRec_name() {
		return rec_name;
	}
	public void setRec_name(String rec_name) {
		this.rec_name = rec_name;
	}
	public String getAddress() {
		return address;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public ExpressCom getExpress_com() {
		return express_com;
	}
	public void setExpress_com(ExpressCom express_com) {
		this.express_com = express_com;
	}
	public String getExpress_no() {
		return express_no;
	}
	public void setExpress_no(String express_no) {
		this.express_no = express_no;
	}
	public Date getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
}
